package com.petplanet.navigation

import androidx.compose.runtime.Composable
import com.petplanet.shop.ShoppingPage

internal sealed class Destinations(val route: String, val title: String, val iconResID: Int? = null, val page: @Composable () -> Unit? = {}) {
    companion object{
        val entries = arrayOf(
            BlogPage,
            ShopPage,
            PublishPage,
            MessagesPage,
            ProfilePage
        )
        fun getBottomNavEntries(): Array<Destinations> {
            return arrayOf(
                BlogPage,
                ShopPage,
                PublishPage,
                MessagesPage,
                ProfilePage
            )
        }
    }
    data object BlogPage: Destinations("blog_page", "宠物圈")
    data object ShopPage: Destinations("shop_page", "售货室", page = {ShoppingPage()} )
    data object PublishPage: Destinations("publish_page", "发布")
    data object MessagesPage: Destinations("message_page", "消息")
    data object ProfilePage: Destinations("profile_page", "个人空间")

}